//
//  MIDIClubCellTableViewCell.m
//  MIDI
//
//  Created by 千行时线 on 15/9/14.
//  Copyright (c) 2015年 QXSX. All rights reserved.
//

#import "MIDIClubCell.h"
#import "CommFunc.h"
@interface MIDIClubCell()
@property (weak, nonatomic) IBOutlet UIImageView *mainUIImage;
@property (weak, nonatomic) IBOutlet UILabel *titleUIlabel;
@property (weak, nonatomic) IBOutlet UILabel *contentUILabel;

@end
@implementation MIDIClubCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    //[super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

+ (instancetype)cellWithTableView:(UITableView *)tableView
{
    static NSString *ID = @"MIDIClubCell";
    MIDIClubCell *cell = [tableView dequeueReusableCellWithIdentifier:ID];
    if (cell == nil) {
        
        cell = [[[NSBundle mainBundle] loadNibNamed:ID owner:nil options:nil]firstObject];
        
        [cell setSelectionStyle:UITableViewCellSelectionStyleNone];
    }
    
    return cell;
}

- (IBAction)didClickPhoneBtn:(id)sender {
    
}

-(int)getHeight
{
    int height = [CommFunc sizeWithString:self.introLb.text
                                     font:[UIFont fontWithName:@"Hiragino Sans GB" size:12]
                                      max:CGSizeMake(self.introLb.frame.size.width, MAXFLOAT)].height;
    
    if (height <= 0)
        return 604;
    else
    {
        height = self.clubImg.frame.size.height + 20 + 18 + 28 + height + 15 + self.phoneBtn.frame.size.height + 11 + 24;
        return height;
    }
    
    return 0;
}


@end




















